import 'package:self32/generated/json/base/json_convert_content.dart';
import 'package:self32/entity/book_entity.dart';

BookEntity $BookEntityFromJson(Map<String, dynamic> json) {
	final BookEntity bookEntity = BookEntity();
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		bookEntity.no = no;
	}
	final String? uid = jsonConvert.convert<String>(json['uid']);
	if (uid != null) {
		bookEntity.uid = uid;
	}
	final String? place = jsonConvert.convert<String>(json['place']);
	if (place != null) {
		bookEntity.place = place;
	}
	final String? stateValue = jsonConvert.convert<String>(json['state_value']);
	if (stateValue != null) {
		bookEntity.stateValue = stateValue;
	}
	final String? isbn = jsonConvert.convert<String>(json['isbn']);
	if (isbn != null) {
		bookEntity.isbn = isbn;
	}
	final String? mainTitle = jsonConvert.convert<String>(json['main_title']);
	if (mainTitle != null) {
		bookEntity.mainTitle = mainTitle;
	}
	final String? author = jsonConvert.convert<String>(json['author']);
	if (author != null) {
		bookEntity.author = author;
	}
	final String? searchNo = jsonConvert.convert<String>(json['search_no']);
	if (searchNo != null) {
		bookEntity.searchNo = searchNo;
	}
	final String? subject = jsonConvert.convert<String>(json['subject']);
	if (subject != null) {
		bookEntity.subject = subject;
	}
	final String? publisher = jsonConvert.convert<String>(json['publisher']);
	if (publisher != null) {
		bookEntity.publisher = publisher;
	}
	final String? publishDate = jsonConvert.convert<String>(json['publish_date']);
	if (publishDate != null) {
		bookEntity.publishDate = publishDate;
	}
	final String? returnTime = jsonConvert.convert<String>(json['return_time']);
	if (returnTime != null) {
		bookEntity.returnTime = returnTime;
	}
	final String? readyReturnDate = jsonConvert.convert<String>(json['ready_return_date']);
	if (readyReturnDate != null) {
		bookEntity.readyReturnDate = readyReturnDate;
	}
	final String? error = jsonConvert.convert<String>(json['error']);
	if (error != null) {
		bookEntity.error = error;
	}
	final bool? isScan = jsonConvert.convert<bool>(json['isScan']);
	if (isScan != null) {
		bookEntity.isScan = isScan;
	}
	final bool? force = jsonConvert.convert<bool>(json['force']);
	if (force != null) {
		bookEntity.force = force;
	}
	final int? state = jsonConvert.convert<int>(json['state']);
	if (state != null) {
		bookEntity.state = state;
	}
	return bookEntity;
}

Map<String, dynamic> $BookEntityToJson(BookEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['no'] = entity.no;
	data['uid'] = entity.uid;
	data['place'] = entity.place;
	data['state_value'] = entity.stateValue;
	data['isbn'] = entity.isbn;
	data['main_title'] = entity.mainTitle;
	data['author'] = entity.author;
	data['search_no'] = entity.searchNo;
	data['subject'] = entity.subject;
	data['publisher'] = entity.publisher;
	data['force'] = entity.force;
	data['publish_date'] = entity.publishDate;
	data['return_time'] = entity.returnTime;
	data['ready_return_date'] = entity.readyReturnDate;
	data['error'] = entity.error;
	data['isScan'] = entity.isScan;
	data['state'] = entity.state;
	return data;
}